home *** CD-ROM | disk | FTP | other *** search
-
- #ifndef _INPUT_H_
- #define _INPUT_H_
-
- #define KEYDOWN(name, key) (name[key] & 0x100)
-
- //--------------------------------------------------------------------
- // Name: INPUT Class
- // Desc: ************
- //--------------------------------------------------------------------
- class INPUT
- {
- private:
-
- LPDIRECTINPUT8 m_pDirectInput;
- LPDIRECTINPUTDEVICE8 m_pKeyboard;
- LPDIRECTINPUTDEVICE8 m_pMouse;
-
-
- public:
-
- //konstruktor
- INPUT();
-
- //klavesnica
- char KeyDown[256];
- bool KeyDOWN[256];
- bool KeyPRESS[256];
-
- //mys
- bool MouseLeftDown;
- bool MouseRightDown;
- bool MouseLeftPress;
- bool MouseRightPress;
- VECTOR3D Mouse;
- VECTOR3D MouseRelative;
-
- //inicializacia
- void Initialize();
-
- //odstranenie z pamati
- void CleanUp();
-
- //ziska hodnoty z klavesnice alebo mysi
- void RefreshKeyboard();
- void RefreshMouse();
-
-
- };
-
-
-
- #endif //_INPUT_H_